Optimal. Leaf size=205 \[ \frac{2 a (7 A+5 C) \sqrt{\cos (c+d x)} \sqrt{\sec (c+d x)} \text{EllipticF}\left (\frac{1}{2} (c+d x),2\right )}{21 d}+\frac{2 a (7 A+5 C) \sin (c+d x) \sec ^{\frac{3}{2}}(c+d x)}{21 d}+\frac{2 a (5 A+3 C) \sin (c+d x) \sqrt{\sec (c+d x)}}{5 d}-\frac{2 a (5 A+3 C) \sqrt{\cos (c+d x)} \sqrt{\sec (c+d x)} E\left (\left .\frac{1}{2} (c+d x)\right |2\right )}{5 d}+\frac{2 a C \sin (c+d x) \sec ^{\frac{7}{2}}(c+d x)}{7 d}+\frac{2 a C \sin (c+d x) \sec ^{\frac{5}{2}}(c+d x)}{5 d} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.222209, antiderivative size = 205, normalized size of antiderivative = 1., number of steps used = 9, number of rules used = 7, integrand size = 33, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.212, Rules used = {4077, 4047, 3768, 3771, 2641, 4046, 2639} \[ \frac{2 a (7 A+5 C) \sin (c+d x) \sec ^{\frac{3}{2}}(c+d x)}{21 d}+\frac{2 a (5 A+3 C) \sin (c+d x) \sqrt{\sec (c+d x)}}{5 d}+\frac{2 a (7 A+5 C) \sqrt{\cos (c+d x)} \sqrt{\sec (c+d x)} F\left (\left .\frac{1}{2} (c+d x)\right |2\right )}{21 d}-\frac{2 a (5 A+3 C) \sqrt{\cos (c+d x)} \sqrt{\sec (c+d x)} E\left (\left .\frac{1}{2} (c+d x)\right |2\right )}{5 d}+\frac{2 a C \sin (c+d x) \sec ^{\frac{7}{2}}(c+d x)}{7 d}+\frac{2 a C \sin (c+d x) \sec ^{\frac{5}{2}}(c+d x)}{5 d} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 4077
Rule 4047
Rule 3768
Rule 3771
Rule 2641
Rule 4046
Rule 2639
Rubi steps
\begin{align*} \int \sec ^{\frac{3}{2}}(c+d x) (a+a \sec (c+d x)) \left (A+C \sec ^2(c+d x)\right ) \, dx &=\frac{2 a C \sec ^{\frac{7}{2}}(c+d x) \sin (c+d x)}{7 d}+\frac{2}{7} \int \sec ^{\frac{3}{2}}(c+d x) \left (\frac{7 a A}{2}+\frac{1}{2} a (7 A+5 C) \sec (c+d x)+\frac{7}{2} a C \sec ^2(c+d x)\right ) \, dx\\ &=\frac{2 a C \sec ^{\frac{7}{2}}(c+d x) \sin (c+d x)}{7 d}+\frac{2}{7} \int \sec ^{\frac{3}{2}}(c+d x) \left (\frac{7 a A}{2}+\frac{7}{2} a C \sec ^2(c+d x)\right ) \, dx+\frac{1}{7} (a (7 A+5 C)) \int \sec ^{\frac{5}{2}}(c+d x) \, dx\\ &=\frac{2 a (7 A+5 C) \sec ^{\frac{3}{2}}(c+d x) \sin (c+d x)}{21 d}+\frac{2 a C \sec ^{\frac{5}{2}}(c+d x) \sin (c+d x)}{5 d}+\frac{2 a C \sec ^{\frac{7}{2}}(c+d x) \sin (c+d x)}{7 d}+\frac{1}{5} (a (5 A+3 C)) \int \sec ^{\frac{3}{2}}(c+d x) \, dx+\frac{1}{21} (a (7 A+5 C)) \int \sqrt{\sec (c+d x)} \, dx\\ &=\frac{2 a (5 A+3 C) \sqrt{\sec (c+d x)} \sin (c+d x)}{5 d}+\frac{2 a (7 A+5 C) \sec ^{\frac{3}{2}}(c+d x) \sin (c+d x)}{21 d}+\frac{2 a C \sec ^{\frac{5}{2}}(c+d x) \sin (c+d x)}{5 d}+\frac{2 a C \sec ^{\frac{7}{2}}(c+d x) \sin (c+d x)}{7 d}-\frac{1}{5} (a (5 A+3 C)) \int \frac{1}{\sqrt{\sec (c+d x)}} \, dx+\frac{1}{21} \left (a (7 A+5 C) \sqrt{\cos (c+d x)} \sqrt{\sec (c+d x)}\right ) \int \frac{1}{\sqrt{\cos (c+d x)}} \, dx\\ &=\frac{2 a (7 A+5 C) \sqrt{\cos (c+d x)} F\left (\left .\frac{1}{2} (c+d x)\right |2\right ) \sqrt{\sec (c+d x)}}{21 d}+\frac{2 a (5 A+3 C) \sqrt{\sec (c+d x)} \sin (c+d x)}{5 d}+\frac{2 a (7 A+5 C) \sec ^{\frac{3}{2}}(c+d x) \sin (c+d x)}{21 d}+\frac{2 a C \sec ^{\frac{5}{2}}(c+d x) \sin (c+d x)}{5 d}+\frac{2 a C \sec ^{\frac{7}{2}}(c+d x) \sin (c+d x)}{7 d}-\frac{1}{5} \left (a (5 A+3 C) \sqrt{\cos (c+d x)} \sqrt{\sec (c+d x)}\right ) \int \sqrt{\cos (c+d x)} \, dx\\ &=-\frac{2 a (5 A+3 C) \sqrt{\cos (c+d x)} E\left (\left .\frac{1}{2} (c+d x)\right |2\right ) \sqrt{\sec (c+d x)}}{5 d}+\frac{2 a (7 A+5 C) \sqrt{\cos (c+d x)} F\left (\left .\frac{1}{2} (c+d x)\right |2\right ) \sqrt{\sec (c+d x)}}{21 d}+\frac{2 a (5 A+3 C) \sqrt{\sec (c+d x)} \sin (c+d x)}{5 d}+\frac{2 a (7 A+5 C) \sec ^{\frac{3}{2}}(c+d x) \sin (c+d x)}{21 d}+\frac{2 a C \sec ^{\frac{5}{2}}(c+d x) \sin (c+d x)}{5 d}+\frac{2 a C \sec ^{\frac{7}{2}}(c+d x) \sin (c+d x)}{7 d}\\ \end{align*}
Mathematica [C] time = 4.63431, size = 409, normalized size = 2. \[ \frac{2 a \csc (c) e^{-i d x} \cos ^2(c+d x) \left (A+C \sec ^2(c+d x)\right ) \left (7 \sqrt{2} \left (-1+e^{2 i c}\right ) (5 A+3 C) e^{2 i d x} \sqrt{\frac{e^{i (c+d x)}}{1+e^{2 i (c+d x)}}} \sqrt{1+e^{2 i (c+d x)}} \text{Hypergeometric2F1}\left (\frac{1}{2},\frac{3}{4},\frac{7}{4},-e^{2 i (c+d x)}\right )+10 (7 A+5 C) \sin (c) e^{i d x} \sqrt{\cos (c+d x)} \sqrt{\sec (c+d x)} \text{EllipticF}\left (\frac{1}{2} (c+d x),2\right )-\frac{\left (-1+e^{2 i c}\right ) e^{-i (c-d x)} \sqrt{\sec (c+d x)} \left (35 A \left (3 e^{i (c+d x)}+e^{2 i (c+d x)}+3 e^{3 i (c+d x)}-1\right ) \left (1+e^{2 i (c+d x)}\right )^2+C \left (21 e^{i (c+d x)}-85 e^{2 i (c+d x)}+189 e^{3 i (c+d x)}+85 e^{4 i (c+d x)}+231 e^{5 i (c+d x)}+25 e^{6 i (c+d x)}+63 e^{7 i (c+d x)}-25\right )\right )}{\left (1+e^{2 i (c+d x)}\right )^3}\right )}{105 d (A \cos (2 (c+d x))+A+2 C)} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [B] time = 7.056, size = 838, normalized size = 4.1 \begin{align*} \text{result too large to display} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F(-1)] time = 0., size = 0, normalized size = 0. \begin{align*} \text{Timed out} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [F] time = 0., size = 0, normalized size = 0. \begin{align*}{\rm integral}\left ({\left (C a \sec \left (d x + c\right )^{4} + C a \sec \left (d x + c\right )^{3} + A a \sec \left (d x + c\right )^{2} + A a \sec \left (d x + c\right )\right )} \sqrt{\sec \left (d x + c\right )}, x\right ) \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F(-1)] time = 0., size = 0, normalized size = 0. \begin{align*} \text{Timed out} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int{\left (C \sec \left (d x + c\right )^{2} + A\right )}{\left (a \sec \left (d x + c\right ) + a\right )} \sec \left (d x + c\right )^{\frac{3}{2}}\,{d x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]